package com.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.pojo.MenuBean;

public class MenuMapper implements RowMapper
{
	public Object mapRow(ResultSet rset, int index) throws SQLException
	{
		MenuBean menu = new MenuBean();
		menu.setId(rset.getLong(1));
		menu.setMenuname(rset.getString(2));
		menu.setOrdernum(rset.getInt(3));
		menu.setUrl(rset.getString(4));
		menu.setIsleaf(rset.getInt(5));
		menu.setIsstop(rset.getInt(6));
		menu.setPmenuId(rset.getLong(7));
		return menu;
	}
}
